.bg-img {
  .wave {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: -1;
  }
}

.container {
  width: 100vh;
  height: 100vh;
  display: grid; //w网格布局
  grid-template-columns: repeat(2, 1fr); //分左右各一格 主要是对网格进行划分，形成二维布局，单位可以是像素，百分比，自适应以及fr单位（网格剩余空间比例单位），网格的划分是很规律的，如果需要添加多个横纵网格时，可以利用repeat()语法进行简化操作
  grid-gap: 7rem;
  padding: 0 2rem;

  .decorative-img {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    img {
      width: 500px;
    }
  }

  .login-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;

    .login-form {
      width: 360px;

      .login-avatar {
        height: 100px;
      }

      .login-title {
        margin: 15px 0;
        color: #333;
        text-transform: uppercase;
        font-size: 2.9rem;
      }

      .input-wrapper {

        i {
          color: #d9d9d9;
          display: flex;
          justify-content: center;
          align-items: center;
          transition: .3s;
        }

        span {
          position: absolute;
          left: 30px;
          top: 50%;
          transform: translateY(-50%);
          color: #999;
          font-size: 18px;
          font-weight: 600;
          transition: .3s;
        }

        input {
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          border: none;
          outline: none;
          background: none;
          padding: 0.5rem 1.9rem;
          font-size: 1.2rem;
          color: #555;
          font-family: 'Poppins', sans-serif;
        }

        .username-wrapper,
        .password-wrapper {
          position: relative;
          display: grid;
          grid-template-columns: 7% 93%;
          height: 45px;
          margin: 25px 0;
          padding: 5px 0;
          border-bottom: 2px solid #d9d9d9;

          &::before,
          &::after {
            content: '';
            position: absolute;
            bottom: -2px;
            width: 0%;
            height: 2px;
            background-color: #38d39f;
            transition: .4s;
          }

          &::before {
            right: 50%;
          }

          &::after {
            left: 50%;
          }

          &.focus {
            i {
              color: #38d39f;
            }

            span {
              top: -5px;
              font-size: 15px;
            }
          }

          &.focus::before,
          &.focus::after {
            width: 50%;
          }

        }


      }

      .forgot {
        margin: -10px 0 10px 0;
        display: block;
        text-align: right;
        text-decoration: none;
        color: #999;
        font-size: 0.9rem;
        transition: .3s;

        &:hover {
          color: #38d39f;
        }
      }

      .submit-btn {
        display: block;
        width: 100%;
        height: 50px;
        border-radius: 25px;
        outline: none;
        border: none;
        background-image: linear-gradient(to right, #32be8f, #32b39f, #32be8f);
        background-size: 200%;
        font-size: 1.2rem;
        color: #fff;
        font-family: 'Poppins', sans-serif;
        text-transform: uppercase;
        margin: 1rem 0;
        cursor: pointer;

        &:hover {
          background-position: right;
        }
      }

    }
  }
}



@media screen and (max-width: 1200px) {
  .container {
    grid-gap: 5rem;
  }
}

@media screen and (max-width: 1000px) {
  .decorative-img {
    img {
      width: 400px;
    }
  }

  .login-wrapper {
    .login-form {
      width: 290px;

      .login-title {
        font-size: 2.4rem;
        margin: 8px 0;
      }
    }
  }
}

@media screen and (max-width: 900px) {
  .bg-img {
    .wave {
      display: none;
    }
  }

  .container {
    grid-template-columns: 1fr;

    .decorative-img {
      img {
        display: none;
      }
    }

    .login-wrapper {
      justify-content: center;
    }
  }
}